<?php if (!defined('THINK_PATH')) exit();?><!--user login-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<title><?php echo (L("KOD_NAME")); echo (L("KOD_POWER_BY")); ?></title>
	<link href="/Public/images/favicon.ico" rel="Shortcut Icon" >
	<link href="/Public/style/bootstrap.css?ver=<?php echo KOD_VERSION;?>" rel="stylesheet"/>
	<link href="/Public/style/font-awesome/css/font-awesome.css" rel="stylesheet" >
	<!-- 字体不能跨域问题 -->
	<!--[if IE 7]>
	<link rel="stylesheet" href="/Public/style/font-awesome/css/font-awesome-ie7.css">
	<![endif]-->
	<link rel="stylesheet" type="text/css" href="/Public/style/login.css">
</head>
<body>
	<img class="background" src="/Public/images/wall_page/<?php echo ($image); ?>" />
	<div class="loginbox" >
		<div class="title">
			<div class="logo"><i class="icon-cloud"></i><?php echo (L("KOD_NAME")); ?></div>
			<div class='info'>——<?php echo (L("KOD_NAME_DESC")); ?></div>
		</div>
		<div class="form">
			<div class="inputs">
				<div><span><?php echo (L("USERNAME")); ?>：</span><input id="username" name='name' type="text" placeholder="<?php echo (L("USERNAME")); ?>" required/> </div>
				<div><span><?php echo (L("PASSWORD")); ?>：</span><input id="password" name='password' type="password" placeholder="<?php echo (L("PASSWORD")); ?>" required /></div>
				
            	<?php if($_SESSION['code_error_time']&& $_SESSION['code_error_time']>= 3): ?><div class='check_code'>
					<span><?php echo (L("LOGIN_CODE")); ?>：</span>
					<input name='check_code' class="check_code" type="text" placeholder="<?php echo (L("LOGIN_CODE")); ?>" required /> <img src='./index.php?user/checkCode' onclick="this.src='./index.php?user/checkCode'" />
					<div style="clear:both;"></div>
				</div><?php endif; ?>
			</div>
			<div class="actions">
				<input type="submit" id="submit" value="<?php echo (L("LOGIN")); ?>" />
				<input type="checkbox" class="checkbox" name="rember_password" id='rm' checked='checked' />
				<label for='rm'><?php echo (L("LOGIN_REMBER_PASSWORD")); ?></label>
			</div>
			<div class="msg"><?php echo ($msg); ?></div>
			<div style="clear:both;"></div>

			<div class='guest'>
				<?php if(C("SETTING_SYSTEM_DEFAULT")== 1): ?><a href="<?php echo U('user/loginSubmit',array('name'=>'guest','password'=>'guest'));?>"><?php echo (L("GUEST_LOGIN")); ?><i class=' icon-arrow-right'></i></a><?php endif; ?>
			</div>
		</div>
	</div>
<div class="common_footer"><?php echo (L("COPYRIGHT_PRE")); ?> v<?php echo (C("KOD_VERSION")); ?> | <?php echo (L("COPYRIGHT_INFO")); ?></div>
<script src="http://childsay.com/kod/index.php?share/common_js#id=<?php echo rand_string(8);?>"></script>
<script src="/Public/js/lib/seajs/sea.js?ver=<?php echo (L("KOD_VERSION")); ?>"></script>
<script type="text/javascript">
	seajs.config({
		base: "/Public/js/",
		preload: ["lib/jquery-1.8.0.min"],
		map:[
			[ /^(.*\.(?:css|js))(.*)$/i,'$1$2?ver='+G.version]
		]
	});
	seajs.use("app/src/user/main");
</script>
</body>
</html>